<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <style>
      a {
        color: red;
      }
      div {
        border: solid 2px #ddd;
      }
      div:hover,
      input:hover {
        color: green;
        background-color: royalblue;
      }
      /* a:active {
        color: blue;
      }
      a:visited {
        color: #999;
      } */
    </style>
    <a href="">yahoo</a>
    <div>abc</div>
    <input type="text" />
    <table width="100%" border="1">
      <tr>
        <td></td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td></td>
      </tr>
    </table>
  </body>
</html>
